package com.xiao.spring.aop.aop_1_2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.xiao.spring.aop.bean.UserService;

public class ProxyFactoryService {

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("aop_1_2.xml");
		UserService userService = (UserService) context.getBean("userServiceFactory");
		userService.printUser();
	}

}
